// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_ENV_H_
#define CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_ENV_H_

#include "base/lazy_instance.h"
#include "content/common/content_export.h"
#include "third_party/leveldatabase/env_chromium.h"

namespace content {

// The leveldb::Env used by the Indexed DB backend.
class LevelDBEnv : public leveldb_env::ChromiumEnv {
    LevelDBEnv();

public:
    friend struct base::DefaultLazyInstanceTraits<LevelDBEnv>;

    CONTENT_EXPORT static LevelDBEnv* Get();
};

} // namespace content

#endif // CONTENT_BROWSER_INDEXED_DB_LEVELDB_LEVELDB_ENV_H_
